.class public Lcom/k/j/o/a/f;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/k/j/o/a/f$d;,
        Lcom/k/j/o/a/f$b;,
        Lcom/k/j/o/a/f$c;,
        Lcom/k/j/o/a/f$a;,
        Lcom/k/j/o/a/f$e;
    }
.end annotation


# static fields
.field private static j:Lcom/k/j/o/a/f;


# instance fields
.field private final a:I

.field private final b:I

.field private final c:I

.field private final d:I

.field private final e:I

.field private final f:I

.field private final g:I

.field private final h:I

.field private final i:I

.field private final k:I


# direct methods
.method private constructor <init>()V
    .locals 1

    const/4 v0, 0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput v0, p0, Lcom/k/j/o/a/f;->a:I

    iput v0, p0, Lcom/k/j/o/a/f;->b:I

    const/4 v0, 0x2

    iput v0, p0, Lcom/k/j/o/a/f;->c:I

    const/high16 v0, 0x31010000

    iput v0, p0, Lcom/k/j/o/a/f;->d:I

    const/high16 v0, 0x31020000

    iput v0, p0, Lcom/k/j/o/a/f;->e:I

    const/high16 v0, -0x10000

    iput v0, p0, Lcom/k/j/o/a/f;->f:I

    const v0, 0xffff

    iput v0, p0, Lcom/k/j/o/a/f;->g:I

    const/16 v0, 0x4101

    iput v0, p0, Lcom/k/j/o/a/f;->h:I

    const/16 v0, 0x4102

    iput v0, p0, Lcom/k/j/o/a/f;->i:I

    const/16 v0, 0x12

    iput v0, p0, Lcom/k/j/o/a/f;->k:I

    return-void
.end method

.method public static a()Lcom/k/j/o/a/f;
    .locals 1

    sget-object v0, Lcom/k/j/o/a/f;->j:Lcom/k/j/o/a/f;

    if-nez v0, :cond_0

    new-instance v0, Lcom/k/j/o/a/f;

    invoke-direct {v0}, Lcom/k/j/o/a/f;-><init>()V

    sput-object v0, Lcom/k/j/o/a/f;->j:Lcom/k/j/o/a/f;

    :cond_0
    sget-object v0, Lcom/k/j/o/a/f;->j:Lcom/k/j/o/a/f;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/io/InputStream;)B
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v3, 0x0

    const/4 v2, 0x1

    new-array v0, v2, [B

    invoke-virtual {p1, v0, v3, v2}, Ljava/io/InputStream;->read([BII)I

    move-result v1

    if-eq v1, v2, :cond_0

    new-instance v0, Ljava/io/EOFException;

    invoke-direct {v0}, Ljava/io/EOFException;-><init>()V

    throw v0

    :cond_0
    aget-byte v0, v0, v3

    return v0
.end method

.method public a(Lcom/k/j/o/a/c;JLcom/k/j/o/a/f$e;)I
    .locals 9

    const/4 v1, 0x1

    const/4 v2, 0x0

    :try_start_0
    invoke-virtual {p1, p2, p3}, Lcom/k/j/o/a/c;->c(J)J

    move-result-wide v3

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->a(Lcom/k/j/o/a/c;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    :try_start_1
    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->h(Ljava/io/InputStream;)Lcom/k/j/o/a/f$a;
    :try_end_1
    .catch Lcom/k/j/o/a/f$d; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v0

    if-eqz v0, :cond_1

    :try_start_2
    invoke-virtual {v0}, Lcom/k/j/o/a/f$a;->g()Z

    move-result v5

    if-nez v5, :cond_3

    :cond_1
    new-instance v0, Ljava/lang/Exception;

    const/16 v1, 0xb6f

    const/16 v2, 0x15

    invoke-static {v1, v2}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, -0x1

    :cond_2
    :goto_1
    return v0

    :cond_3
    :try_start_3
    invoke-virtual {v0}, Lcom/k/j/o/a/f$a;->f()Z

    move-result v5

    if-eqz v5, :cond_5

    iget v5, v0, Lcom/k/j/o/a/f$a;->c:I

    int-to-long v5, v5

    invoke-virtual {p0, p1, v5, v6}, Lcom/k/j/o/a/f;->a(Ljava/io/InputStream;J)V

    iget v0, v0, Lcom/k/j/o/a/f$a;->b:I

    int-to-long v5, v0

    invoke-virtual {p0, p1, v5, v6, p4}, Lcom/k/j/o/a/f;->a(Lcom/k/j/o/a/c;JLcom/k/j/o/a/f$e;)I

    move-result v0

    if-eq v0, v1, :cond_2

    if-gez v0, :cond_4

    new-instance v0, Ljava/lang/Exception;

    const/16 v1, 0xc10

    const/16 v2, 0x10

    invoke-static {v1, v2}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    invoke-virtual {p1, v3, v4}, Lcom/k/j/o/a/c;->b(J)J

    goto :goto_0

    :cond_5
    invoke-virtual {v0}, Lcom/k/j/o/a/f$a;->e()Z

    move-result v5

    if-eqz v5, :cond_a

    invoke-virtual {p1}, Lcom/k/j/o/a/c;->b()J

    move-result-wide v5

    iget v7, v0, Lcom/k/j/o/a/f$a;->c:I

    int-to-long v7, v7

    invoke-virtual {p1, v7, v8}, Lcom/k/j/o/a/c;->c(J)J

    invoke-virtual {p0, v0, p1}, Lcom/k/j/o/a/f;->a(Lcom/k/j/o/a/f$a;Ljava/io/InputStream;)Lcom/k/j/o/a/f$b;

    move-result-object v0

    if-eqz v0, :cond_6

    invoke-virtual {v0}, Lcom/k/j/o/a/f$b;->f()Z

    move-result v7

    if-nez v7, :cond_7

    :cond_6
    new-instance v0, Ljava/lang/Exception;

    const/16 v1, 0xbd2

    const/16 v2, 0x19

    invoke-static {v1, v2}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_7
    invoke-virtual {p1, v5, v6}, Lcom/k/j/o/a/c;->b(J)J

    invoke-virtual {v0}, Lcom/k/j/o/a/f$b;->b()Z

    move-result v5

    if-eqz v5, :cond_8

    invoke-virtual {v0}, Lcom/k/j/o/a/f$b;->d()I

    move-result v0

    int-to-long v5, v0

    invoke-virtual {p0, p1, v5, v6}, Lcom/k/j/o/a/f;->a(Ljava/io/InputStream;J)V

    goto/16 :goto_0

    :cond_8
    invoke-virtual {p1}, Lcom/k/j/o/a/c;->a()J

    move-result-wide v5

    invoke-virtual {v0}, Lcom/k/j/o/a/f$b;->d()I

    move-result v7

    int-to-long v7, v7

    add-long/2addr v5, v7

    invoke-virtual {v0}, Lcom/k/j/o/a/f$b;->d()I

    move-result v7

    int-to-long v7, v7

    invoke-virtual {p1, v7, v8}, Lcom/k/j/o/a/c;->c(J)J

    invoke-virtual {v0}, Lcom/k/j/o/a/f$b;->e()[B

    move-result-object v7

    invoke-virtual {p1, v7}, Lcom/k/j/o/a/c;->a([B)V

    if-eqz p4, :cond_b

    invoke-interface {p4, v0, p1}, Lcom/k/j/o/a/f$e;->a(Lcom/k/j/o/a/f$b;Ljava/io/InputStream;)Z

    move-result v0

    :goto_2
    if-eqz v0, :cond_9

    move v0, v1

    goto/16 :goto_1

    :cond_9
    invoke-virtual {p1}, Lcom/k/j/o/a/c;->c()V

    invoke-virtual {p1, v5, v6}, Lcom/k/j/o/a/c;->a(J)V

    invoke-virtual {p1, v3, v4}, Lcom/k/j/o/a/c;->b(J)J

    goto/16 :goto_0

    :cond_a
    iget v5, v0, Lcom/k/j/o/a/f$a;->b:I

    iget v0, v0, Lcom/k/j/o/a/f$a;->c:I

    add-int/2addr v0, v5

    int-to-long v5, v0

    invoke-virtual {p1, v5, v6}, Lcom/k/j/o/a/c;->skip(J)J

    move-result-wide v5

    int-to-long v7, v0

    cmp-long v0, v5, v7

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/Exception;

    const/16 v1, 0xc75

    const/16 v2, 0xc

    invoke-static {v1, v2}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_3
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0

    :catch_1
    move-exception v0

    move v0, v2

    goto/16 :goto_1

    :cond_b
    move v0, v2

    goto :goto_2
.end method

.method public a(Ljava/io/InputStream;Ljava/io/OutputStream;)I
    .locals 4

    const/4 v0, 0x0

    const/16 v1, 0x400

    :try_start_0
    new-array v1, v1, [B

    :goto_0
    invoke-virtual {p1, v1}, Ljava/io/InputStream;->read([B)I

    move-result v2

    if-lez v2, :cond_0

    const/4 v3, 0x0

    invoke-virtual {p2, v1, v3, v2}, Ljava/io/OutputStream;->write([BII)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    add-int/2addr v0, v2

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, -0x1

    :cond_0
    return v0
.end method

.method public a(Ljava/io/InputStream;Ljava/io/OutputStream;I)I
    .locals 4

    const/4 v0, 0x0

    const/16 v1, 0x400

    :try_start_0
    new-array v2, v1, [B

    :goto_0
    if-ge v0, p3, :cond_1

    sub-int v1, p3, v0

    array-length v3, v2

    if-le v1, v3, :cond_0

    array-length v1, v2

    :cond_0
    const/4 v3, 0x0

    invoke-virtual {p1, v2, v3, v1}, Ljava/io/InputStream;->read([BII)I

    move-result v1

    if-gtz v1, :cond_2

    :cond_1
    :goto_1
    return v0

    :cond_2
    const/4 v3, 0x0

    invoke-virtual {p2, v2, v3, v1}, Ljava/io/OutputStream;->write([BII)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    add-int/2addr v0, v1

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, -0x1

    goto :goto_1
.end method

.method public a(Ljava/io/InputStream;Ljava/io/OutputStream;[B)I
    .locals 7

    const/4 v5, 0x0

    const/16 v0, 0x400

    :try_start_0
    new-array v1, v0, [B

    move v6, v5

    :goto_0
    invoke-virtual {p1, v1}, Ljava/io/InputStream;->read([B)I

    move-result v3

    if-lez v3, :cond_0

    const/4 v2, 0x0

    move-object v0, p0

    move-object v4, p3

    invoke-virtual/range {v0 .. v5}, Lcom/k/j/o/a/f;->a([BII[BI)[B

    move-result-object v0

    add-int v2, v5, v3

    array-length v4, p3

    rem-int v5, v2, v4

    const/4 v2, 0x0

    invoke-virtual {p2, v0, v2, v3}, Ljava/io/OutputStream;->write([BII)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    add-int/2addr v6, v3

    goto :goto_0

    :cond_0
    move v0, v6

    :goto_1
    return v0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, -0x1

    goto :goto_1
.end method

.method public a(Ljava/lang/String;Lcom/k/j/o/a/f$e;)I
    .locals 5

    const/4 v1, 0x0

    :try_start_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_0

    new-instance v0, Lcom/k/j/o/a/i;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v3, 0xb9d

    const/16 v4, 0x1d

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/k/j/o/a/i;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catch_0
    move-exception v0

    :goto_0
    :try_start_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 v0, -0x1

    invoke-virtual {p0, v1}, Lcom/k/j/o/a/f;->g(Ljava/io/InputStream;)V

    :goto_1
    return v0

    :cond_0
    :try_start_2
    new-instance v2, Lcom/k/j/o/a/c;

    invoke-direct {v2, v0}, Lcom/k/j/o/a/c;-><init>(Ljava/io/File;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    const-wide/16 v0, -0x1

    :try_start_3
    invoke-virtual {p0, v2, v0, v1, p2}, Lcom/k/j/o/a/f;->a(Lcom/k/j/o/a/c;JLcom/k/j/o/a/f$e;)I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    move-result v0

    if-ltz v0, :cond_1

    invoke-virtual {p0, v2}, Lcom/k/j/o/a/f;->g(Ljava/io/InputStream;)V

    goto :goto_1

    :cond_1
    :try_start_4
    new-instance v0, Lcom/k/j/o/a/i;

    const/16 v1, 0xca3

    const/16 v3, 0xb

    invoke-static {v1, v3}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/k/j/o/a/i;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :catch_1
    move-exception v0

    move-object v1, v2

    goto :goto_0

    :catchall_0
    move-exception v0

    :goto_2
    invoke-virtual {p0, v1}, Lcom/k/j/o/a/f;->g(Ljava/io/InputStream;)V

    throw v0

    :catchall_1
    move-exception v0

    move-object v1, v2

    goto :goto_2
.end method

.method public a(Lcom/k/j/o/a/f$a;Ljava/io/InputStream;)Lcom/k/j/o/a/f$b;
    .locals 2

    :try_start_0
    new-instance v0, Lcom/k/j/o/a/f$b;

    invoke-direct {v0, p0, p1}, Lcom/k/j/o/a/f$b;-><init>(Lcom/k/j/o/a/f;Lcom/k/j/o/a/f$a;)V

    invoke-virtual {p0, p2}, Lcom/k/j/o/a/f;->i(Ljava/io/InputStream;)Lcom/k/j/o/a/f$c;

    move-result-object v1

    iput-object v1, v0, Lcom/k/j/o/a/f$b;->b:Lcom/k/j/o/a/f$c;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, 0x0

    goto :goto_0
.end method

.method public a(Ljava/io/File;Ljava/lang/String;)Lcom/k/j/o/a/f$b;
    .locals 10

    const/4 v2, 0x1

    const/4 v0, 0x0

    :try_start_0
    new-instance v3, Lcom/k/j/o/a/f$a;

    invoke-direct {v3, p0}, Lcom/k/j/o/a/f$a;-><init>(Lcom/k/j/o/a/f;)V

    invoke-virtual {p1}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    new-instance v0, Ljava/io/FileNotFoundException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v2, 0xcdc

    const/16 v3, 0x15

    invoke-static {v2, v3}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    :try_start_1
    new-instance v4, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v4}, Ljava/io/ByteArrayOutputStream;-><init>()V

    invoke-virtual {p1}, Ljava/io/File;->isDirectory()Z

    move-result v1

    if-eqz v1, :cond_2

    move v1, v2

    :goto_1
    invoke-virtual {p0, v4, v1}, Lcom/k/j/o/a/f;->b(Ljava/io/OutputStream;I)V

    new-instance v5, Lcom/k/j/o/a/f$c;

    invoke-direct {v5, p0}, Lcom/k/j/o/a/f$c;-><init>(Lcom/k/j/o/a/f;)V

    const/16 v6, 0xb84

    const/4 v7, 0x5

    invoke-static {v6, v7}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {p2, v6}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v6

    invoke-virtual {p0, v6}, Lcom/k/j/o/a/f;->a([B)[B

    move-result-object v7

    invoke-virtual {p0, v6, v7}, Lcom/k/j/o/a/f;->a([B[B)[B

    move-result-object v6

    if-eqz v6, :cond_1

    array-length v8, v6

    if-ge v8, v2, :cond_3

    :cond_1
    new-instance v0, Ljava/lang/Exception;

    const/16 v1, 0xc81

    const/16 v2, 0x18

    invoke-static {v1, v2}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object p2, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    invoke-virtual {p1}, Ljava/io/File;->length()J

    move-result-wide v5

    long-to-int v1, v5

    if-gez v1, :cond_4

    new-instance v0, Ljava/lang/Exception;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v3, 0xc50

    const/16 v4, 0x19

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    invoke-virtual {p0, v4, v7}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;[B)V

    invoke-virtual {p0, v4, v6}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;[B)V

    iput v1, v5, Lcom/k/j/o/a/f$c;->a:I

    iput-object p2, v5, Lcom/k/j/o/a/f$c;->b:Ljava/lang/String;

    iput-object v6, v5, Lcom/k/j/o/a/f$c;->d:[B

    iput-object v7, v5, Lcom/k/j/o/a/f$c;->c:[B

    invoke-virtual {v4}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v1

    const v2, 0x31024101

    iput v2, v3, Lcom/k/j/o/a/f$a;->a:I

    array-length v2, v1

    iput v2, v3, Lcom/k/j/o/a/f$a;->c:I

    iput v0, v3, Lcom/k/j/o/a/f$a;->b:I

    const/16 v2, 0x4101

    invoke-virtual {p0, v2, v1, v0}, Lcom/k/j/o/a/f;->a(I[BI)[B

    move-result-object v1

    new-instance v0, Lcom/k/j/o/a/f$b;

    invoke-direct {v0, p0, v3}, Lcom/k/j/o/a/f$b;-><init>(Lcom/k/j/o/a/f;Lcom/k/j/o/a/f$a;)V

    iput-object v5, v0, Lcom/k/j/o/a/f$b;->b:Lcom/k/j/o/a/f$c;

    iput-object v1, v0, Lcom/k/j/o/a/f$b;->c:[B
    :try_end_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0

    :cond_4
    move v9, v1

    move v1, v0

    move v0, v9

    goto/16 :goto_1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;
    .locals 6

    const/4 v1, 0x0

    :try_start_0
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_1

    new-instance v0, Lcom/k/j/o/a/i;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v3, 0xb9d

    const/16 v4, 0x1d

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/k/j/o/a/i;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception v0

    move-object v2, v1

    :goto_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;Ljava/lang/String;)V

    invoke-virtual {p0, v2}, Lcom/k/j/o/a/f;->g(Ljava/io/InputStream;)V

    move-object v0, v1

    :cond_0
    return-object v0

    :cond_1
    :try_start_1
    new-instance v0, Lcom/k/j/o/a/c;

    invoke-direct {v0, v2}, Lcom/k/j/o/a/c;-><init>(Ljava/io/File;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    const-wide/16 v2, -0x1

    :try_start_2
    new-instance v4, Lcom/k/j/o/a/f$1;

    invoke-direct {v4, p0, p2}, Lcom/k/j/o/a/f$1;-><init>(Lcom/k/j/o/a/f;Ljava/lang/String;)V

    invoke-virtual {p0, v0, v2, v3, v4}, Lcom/k/j/o/a/f;->a(Lcom/k/j/o/a/c;JLcom/k/j/o/a/f$e;)I

    move-result v2

    const/4 v3, 0x1

    if-eq v2, v3, :cond_0

    if-nez v2, :cond_2

    new-instance v2, Lcom/k/j/o/a/i;

    const/16 v3, 0xd70

    const/16 v4, 0xd

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/k/j/o/a/i;-><init>(Ljava/lang/String;)V

    throw v2

    :catch_1
    move-exception v2

    move-object v5, v2

    move-object v2, v0

    move-object v0, v5

    goto :goto_0

    :cond_2
    new-instance v2, Lcom/k/j/o/a/i;

    const/16 v3, 0xca3

    const/16 v4, 0xb

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/k/j/o/a/i;-><init>(Ljava/lang/String;)V

    throw v2
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
.end method

.method public a(Lcom/k/j/o/a/c;)V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const-wide/16 v4, 0x12

    invoke-virtual {p1}, Lcom/k/j/o/a/c;->a()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-nez v0, :cond_1

    invoke-virtual {p0, p1, v4, v5}, Lcom/k/j/o/a/f;->a(Ljava/io/InputStream;J)V

    :cond_0
    return-void

    :cond_1
    invoke-virtual {p1}, Lcom/k/j/o/a/c;->a()J

    move-result-wide v0

    cmp-long v0, v0, v4

    if-gez v0, :cond_0

    new-instance v0, Ljava/lang/Exception;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v2, 0xc03

    const/16 v3, 0xd

    invoke-static {v2, v3}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/k/j/o/a/c;->a()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public a(Ljava/io/InputStream;J)V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    cmp-long v0, p2, v0

    if-gez v0, :cond_0

    new-instance v0, Ljava/io/IOException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v2, 0xd26

    const/16 v3, 0x13

    invoke-static {v2, v3}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    invoke-virtual {p1, p2, p3}, Ljava/io/InputStream;->skip(J)J

    move-result-wide v0

    cmp-long v2, v0, p2

    if-eqz v2, :cond_1

    new-instance v2, Ljava/io/IOException;

    const/16 v3, 0xcf4

    const/16 v4, 0x11

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    aput-object v0, v4, v5

    const/4 v0, 0x1

    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    aput-object v1, v4, v0

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v2

    :cond_1
    return-void
.end method

.method public a(Ljava/io/OutputStream;)V
    .locals 1

    if-eqz p1, :cond_0

    :try_start_0
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public a(Ljava/io/OutputStream;I)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x0

    :goto_0
    const/4 v1, 0x5

    if-ge v0, v1, :cond_1

    and-int/lit8 v1, p2, 0x7f

    ushr-int/lit8 p2, p2, 0x7

    if-eqz p2, :cond_0

    or-int/lit16 v1, v1, 0x80

    invoke-virtual {p1, v1}, Ljava/io/OutputStream;->write(I)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    invoke-virtual {p1, v1}, Ljava/io/OutputStream;->write(I)V

    :cond_1
    return-void
.end method

.method public a(Ljava/io/OutputStream;Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v0

    invoke-virtual {p0, p1, v0}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;I)V

    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    const/16 v0, 0xb84

    const/4 v1, 0x5

    invoke-static {v0, v1}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write([B)V

    :cond_0
    return-void
.end method

.method public a(Ljava/io/OutputStream;[B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    array-length v0, p2

    invoke-virtual {p0, p1, v0}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;I)V

    array-length v0, p2

    if-lez v0, :cond_0

    invoke-virtual {p1, p2}, Ljava/io/OutputStream;->write([B)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)Z
    .locals 1

    if-eqz p1, :cond_0

    const-string v0, ""

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 9

    const/4 v2, 0x0

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    new-instance v5, Ljava/io/File;

    invoke-direct {v5, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    new-instance v6, Ljava/io/File;

    invoke-direct {v6, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_0

    new-instance v0, Ljava/io/FileNotFoundException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v4, 0xb89

    const/16 v5, 0x14

    invoke-static {v4, v5}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v6}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v3}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catch_0
    move-exception v0

    move-object v3, v2

    :goto_0
    :try_start_1
    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_3

    invoke-virtual {p0, v3}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;)V

    invoke-virtual {p0, v2}, Lcom/k/j/o/a/f;->g(Ljava/io/InputStream;)V

    move v0, v1

    :goto_1
    return v0

    :cond_0
    :try_start_2
    invoke-virtual {v5}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-virtual {v5}, Ljava/io/File;->length()J

    move-result-wide v3

    const-wide/16 v7, 0x0

    cmp-long v3, v3, v7

    if-nez v3, :cond_7

    :cond_1
    move v3, v0

    :goto_2
    new-instance v4, Ljava/io/FileOutputStream;

    const/4 v7, 0x1

    invoke-direct {v4, v5, v7}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;Z)V
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v3, :cond_2

    :try_start_3
    invoke-virtual {p0, v4}, Lcom/k/j/o/a/f;->b(Ljava/io/OutputStream;)V

    :cond_2
    invoke-virtual {p0, v6, p3}, Lcom/k/j/o/a/f;->a(Ljava/io/File;Ljava/lang/String;)Lcom/k/j/o/a/f$b;

    move-result-object v5

    if-eqz v5, :cond_3

    iget-object v3, v5, Lcom/k/j/o/a/f$b;->c:[B

    if-nez v3, :cond_4

    :cond_3
    new-instance v0, Ljava/lang/Exception;

    const/16 v3, 0xbeb

    const/16 v5, 0x18

    invoke-static {v3, v5}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v3}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0

    :catch_1
    move-exception v0

    move-object v3, v4

    goto :goto_0

    :cond_4
    iget-object v3, v5, Lcom/k/j/o/a/f$b;->c:[B

    const/4 v7, 0x0

    iget-object v8, v5, Lcom/k/j/o/a/f$b;->c:[B

    array-length v8, v8

    invoke-virtual {v4, v3, v7, v8}, Ljava/io/FileOutputStream;->write([BII)V

    invoke-virtual {v6}, Ljava/io/File;->isDirectory()Z

    move-result v3

    if-nez v3, :cond_5

    new-instance v3, Ljava/io/FileInputStream;

    invoke-direct {v3, v6}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_3
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :try_start_4
    invoke-virtual {v5}, Lcom/k/j/o/a/f$b;->e()[B

    move-result-object v5

    invoke-virtual {p0, v3, v4, v5}, Lcom/k/j/o/a/f;->a(Ljava/io/InputStream;Ljava/io/OutputStream;[B)I

    move-result v5

    invoke-virtual {v6}, Ljava/io/File;->length()J

    move-result-wide v6

    long-to-int v6, v6

    if-eq v5, v6, :cond_6

    new-instance v0, Ljava/lang/Exception;

    const/16 v2, 0xd49

    const/16 v5, 0x15

    invoke-static {v2, v5}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0

    :catch_2
    move-exception v0

    move-object v2, v3

    move-object v3, v4

    goto :goto_0

    :cond_5
    move-object v3, v2

    :cond_6
    invoke-virtual {p0, v4}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;)V
    :try_end_4
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_2
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    invoke-virtual {p0, v2}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;)V

    invoke-virtual {p0, v3}, Lcom/k/j/o/a/f;->g(Ljava/io/InputStream;)V

    goto :goto_1

    :catchall_0
    move-exception v0

    move-object v4, v2

    :goto_3
    invoke-virtual {p0, v4}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;)V

    invoke-virtual {p0, v2}, Lcom/k/j/o/a/f;->g(Ljava/io/InputStream;)V

    throw v0

    :catchall_1
    move-exception v0

    goto :goto_3

    :catchall_2
    move-exception v0

    move-object v2, v3

    goto :goto_3

    :catchall_3
    move-exception v0

    move-object v4, v3

    goto :goto_3

    :cond_7
    move v3, v1

    goto :goto_2
.end method

.method public a(II)[B
    .locals 4

    new-instance v1, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V

    new-instance v2, Ljava/security/SecureRandom;

    invoke-direct {v2}, Ljava/security/SecureRandom;-><init>()V

    sub-int v0, p2, p1

    if-lez v0, :cond_0

    invoke-virtual {v2, v0}, Ljava/security/SecureRandom;->nextInt(I)I

    move-result v0

    add-int/2addr p1, v0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    if-ge v0, p1, :cond_1

    invoke-virtual {v2}, Ljava/security/SecureRandom;->nextInt()I

    move-result v3

    and-int/lit16 v3, v3, 0xff

    invoke-virtual {v1, v3}, Ljava/io/ByteArrayOutputStream;->write(I)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    return-object v0
.end method

.method public a(I[BI)[B
    .locals 3

    const/4 v0, 0x0

    :try_start_0
    new-instance v1, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V

    const/high16 v2, 0x31020000

    or-int/2addr v2, p1

    invoke-virtual {p0, v1, v2}, Lcom/k/j/o/a/f;->b(Ljava/io/OutputStream;I)V

    if-eqz p2, :cond_0

    array-length v0, p2

    :cond_0
    invoke-virtual {p0, v1, p3}, Lcom/k/j/o/a/f;->b(Ljava/io/OutputStream;I)V

    invoke-virtual {p0, v1, v0}, Lcom/k/j/o/a/f;->b(Ljava/io/OutputStream;I)V

    if-eqz p2, :cond_1

    const/4 v2, 0x0

    invoke-virtual {v1, p2, v2, v0}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    :cond_1
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, 0x0

    goto :goto_0
.end method

.method public a([B)[B
    .locals 4

    const/4 v0, 0x1

    array-length v1, p1

    array-length v2, p1

    const/4 v3, 0x2

    if-lt v2, v3, :cond_0

    array-length v0, p1

    div-int/lit8 v0, v0, 0x2

    :cond_0
    invoke-virtual {p0, v0, v1}, Lcom/k/j/o/a/f;->a(II)[B

    move-result-object v0

    return-object v0
.end method

.method public a([BII[BI)[B
    .locals 4

    new-instance v1, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V

    move v0, p5

    :goto_0
    if-ge p2, p3, :cond_1

    array-length v2, p4

    if-lt v0, v2, :cond_0

    const/4 v0, 0x0

    :cond_0
    aget-byte v2, p1, p2

    and-int/lit16 v2, v2, 0xff

    aget-byte v3, p4, v0

    and-int/lit16 v3, v3, 0xff

    xor-int/2addr v2, v3

    and-int/lit16 v2, v2, 0xff

    invoke-virtual {v1, v2}, Ljava/io/ByteArrayOutputStream;->write(I)V

    add-int/lit8 p2, p2, 0x1

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    return-object v0
.end method

.method public a([B[B)[B
    .locals 6

    const/4 v2, 0x0

    array-length v3, p1

    move-object v0, p0

    move-object v1, p1

    move-object v4, p2

    move v5, v2

    invoke-virtual/range {v0 .. v5}, Lcom/k/j/o/a/f;->a([BII[BI)[B

    move-result-object v0

    return-object v0
.end method

.method public b(Ljava/io/InputStream;)I
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    const/4 v2, 0x5

    if-ge v1, v2, :cond_0

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->a(Ljava/io/InputStream;)B

    move-result v2

    and-int/lit8 v3, v2, 0x7f

    mul-int/lit8 v4, v1, 0x7

    shl-int/2addr v3, v4

    or-int/2addr v0, v3

    and-int/lit16 v2, v2, 0x80

    if-nez v2, :cond_1

    :cond_0
    return v0

    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method public b(Ljava/io/OutputStream;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/16 v0, 0x12

    new-array v0, v0, [B

    const/4 v1, 0x0

    invoke-static {v0, v1}, Ljava/util/Arrays;->fill([BB)V

    invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write([B)V

    return-void
.end method

.method public b(Ljava/io/OutputStream;I)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0, p1, p2}, Lcom/k/j/o/a/f;->a(Ljava/io/OutputStream;I)V

    return-void
.end method

.method public c(Ljava/io/OutputStream;I)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    ushr-int/lit8 v0, p2, 0x18

    and-int/lit16 v0, v0, 0xff

    invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write(I)V

    ushr-int/lit8 v0, p2, 0x10

    and-int/lit16 v0, v0, 0xff

    invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write(I)V

    ushr-int/lit8 v0, p2, 0x8

    and-int/lit16 v0, v0, 0xff

    invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write(I)V

    and-int/lit16 v0, p2, 0xff

    invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write(I)V

    return-void
.end method

.method public c(Ljava/io/InputStream;)[B
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v5, 0x0

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->b(Ljava/io/InputStream;)I

    move-result v1

    if-gez v1, :cond_0

    new-instance v0, Ljava/io/IOException;

    const/16 v1, 0xd14

    const/16 v2, 0x12

    invoke-static {v1, v2}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    if-nez v1, :cond_2

    new-array v0, v5, [B

    :cond_1
    return-object v0

    :cond_2
    new-array v0, v1, [B

    invoke-virtual {p1, v0}, Ljava/io/InputStream;->read([B)I

    move-result v2

    if-eq v2, v1, :cond_1

    new-instance v0, Lcom/k/j/o/a/i;

    const/16 v3, 0xc20

    const/16 v4, 0x17

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v4, v5

    const/4 v2, 0x1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    aput-object v1, v4, v2

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/k/j/o/a/i;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public d(Ljava/io/InputStream;)Ljava/lang/String;
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->b(Ljava/io/InputStream;)I

    move-result v0

    if-gez v0, :cond_0

    new-instance v0, Ljava/io/IOException;

    const/16 v1, 0xd14

    const/16 v2, 0x12

    invoke-static {v1, v2}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    if-nez v0, :cond_1

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_1
    new-array v1, v0, [B

    invoke-virtual {p1, v1}, Ljava/io/InputStream;->read([B)I

    move-result v2

    if-eq v2, v0, :cond_2

    new-instance v1, Lcom/k/j/o/a/i;

    const/16 v3, 0xc20

    const/16 v4, 0x17

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v4, v5

    const/4 v2, 0x1

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v4, v2

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Lcom/k/j/o/a/i;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_2
    new-instance v0, Ljava/lang/String;

    const/16 v2, 0xb84

    const/4 v3, 0x5

    invoke-static {v2, v3}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    goto :goto_0
.end method

.method public e(Ljava/io/InputStream;)I
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->b(Ljava/io/InputStream;)I

    move-result v0

    return v0
.end method

.method public f(Ljava/io/InputStream;)I
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    const/4 v2, 0x4

    if-ge v0, v2, :cond_0

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->a(Ljava/io/InputStream;)B

    move-result v2

    and-int/lit16 v2, v2, 0xff

    shl-int/lit8 v1, v1, 0x8

    or-int/2addr v1, v2

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return v1
.end method

.method public g(Ljava/io/InputStream;)V
    .locals 1

    if-eqz p1, :cond_0

    :try_start_0
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public h(Ljava/io/InputStream;)Lcom/k/j/o/a/f$a;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/k/j/o/a/f$d;
        }
    .end annotation

    :try_start_0
    new-instance v0, Lcom/k/j/o/a/f$a;

    invoke-direct {v0, p0}, Lcom/k/j/o/a/f$a;-><init>(Lcom/k/j/o/a/f;)V
    :try_end_0
    .catch Lcom/k/j/o/a/f$d; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    :try_start_1
    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->e(Ljava/io/InputStream;)I

    move-result v1

    iput v1, v0, Lcom/k/j/o/a/f$a;->a:I
    :try_end_1
    .catch Ljava/io/EOFException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Lcom/k/j/o/a/f$d; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    :try_start_2
    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->e(Ljava/io/InputStream;)I

    move-result v1

    iput v1, v0, Lcom/k/j/o/a/f$a;->b:I

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->e(Ljava/io/InputStream;)I

    move-result v1

    iput v1, v0, Lcom/k/j/o/a/f$a;->c:I

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    new-instance v0, Lcom/k/j/o/a/f$d;

    invoke-direct {v0, p0}, Lcom/k/j/o/a/f$d;-><init>(Lcom/k/j/o/a/f;)V

    throw v0
    :try_end_2
    .catch Lcom/k/j/o/a/f$d; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    :catch_1
    move-exception v0

    throw v0

    :catch_2
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, 0x0

    goto :goto_0
.end method

.method public i(Ljava/io/InputStream;)Lcom/k/j/o/a/f$c;
    .locals 5

    :try_start_0
    new-instance v0, Lcom/k/j/o/a/f$c;

    invoke-direct {v0, p0}, Lcom/k/j/o/a/f$c;-><init>(Lcom/k/j/o/a/f;)V

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->e(Ljava/io/InputStream;)I

    move-result v1

    iput v1, v0, Lcom/k/j/o/a/f$c;->a:I

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->c(Ljava/io/InputStream;)[B

    move-result-object v1

    iput-object v1, v0, Lcom/k/j/o/a/f$c;->c:[B

    invoke-virtual {p0, p1}, Lcom/k/j/o/a/f;->c(Ljava/io/InputStream;)[B

    move-result-object v1

    iput-object v1, v0, Lcom/k/j/o/a/f$c;->d:[B

    iget-object v1, v0, Lcom/k/j/o/a/f$c;->d:[B

    iget-object v2, v0, Lcom/k/j/o/a/f$c;->c:[B

    invoke-virtual {p0, v1, v2}, Lcom/k/j/o/a/f;->a([B[B)[B

    move-result-object v1

    new-instance v2, Ljava/lang/String;

    const/16 v3, 0xb84

    const/4 v4, 0x5

    invoke-static {v3, v4}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v1, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    iput-object v2, v0, Lcom/k/j/o/a/f$c;->b:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-static {v0}, Lcom/k/j/o/a/a;->b(Ljava/lang/Throwable;)V

    const/4 v0, 0x0

    goto :goto_0
.end method
